//数组去重
const arr = [1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10]
const unique = arr.reduce((acc,cur) => acc.includes(cur) ? acc: [...acc,cur],[])



console.log(unique)


const unique2 = arr.filter((item,index) => arr.indexOf(item) === index)

console.log(unique2)
